<script src="<?php echo get_url('js/jquery.validate.js')?>" type="text/javascript" xmlns="http://www.w3.org/1999/html"></script>
<script src="<?php echo get_url('js/jquery.ajaxfileupload.js');?>" type="text/javascript"></script>
<script src="<?php echo get_url('js/checkpreviewimg.js');?>" type="text/javascript"></script>
<script src="<?php echo get_theme_url('js/doctor.js')?>" type="text/javascript"></script>
<div class="w1024 bc mt5 clearfix">
    <?php //include get_tpl_path('center/doctors_left_nav'); ?>
    <div class="doctor-container fr">
        <div class="user-tab f14"><span>基本信息</span></div>
        <div class="user-center">
            <p class="user-title">个人基本信息</p>
            <form class="p20 pr" name="update_doctor_t" id="update_doctor_t">
                <p class="mb10 clearfix">
                    <label class="fl">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</label>
                    <input type="text" id="UserName" name="UserName" class="input-01"
                           value="<?php echo isset($response['doctor']) && isset($response['doctor']['Name']) ? $response['doctor']['Name'] : '' ;?>"/>
                    <span id="checkUserName"></span>
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">身&nbsp;&nbsp;份&nbsp;&nbsp;证</label>
                    <input type="text" id="PersonId" name="PersonId" class="input-01" onmouseup="check_sign_id(this)"
                           value="<?php echo isset($response['doctor']) && isset($response['doctor']['PersonId']) ? $response['doctor']['PersonId'] : '' ;?>"/>
                    <span id="checkPersonId"></span>
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">出生日期</label>
                    <input type="text" id="Birthday" name="Birthday" class="input-01"
                           value="<?php echo isset($response['doctor']) && isset($response['doctor']['Birthday']) ? $response['doctor']['Birthday'] : '' ;?>"/>
                    <span id="checkBirthday"></span>
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">手机号码</label>
                    <input type="text" id="DoctorId" name="DoctorId" class="input-01"
                           value="<?php echo isset($response['doctor']) && isset($response['doctor']['DoctorId']) ? $response['doctor']['DoctorId'] : '' ;?>" readonly/>
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">最高学历</label>
                    <?php if(isset($GLOBALS['educationLevel'])): ?>
                        <?php foreach($GLOBALS['educationLevel'] as $k=>$level):?>
                            <?php if (isset($response['doctor']) && isset($response['doctor']['EducationLevel'])) :?>
                                <?php $EducationLevel = $response['doctor']['EducationLevel'];?>
                            <?php else:?>
                                <?php $EducationLevel = '';?>
                            <?php endif;?>
                            <input type="radio" value="<?php echo $k;?>" id="EducationLevel" name="EducationLevel" <?php if($EducationLevel && $EducationLevel == $k):?>checked="true" <?php endif;?>/><?php echo $level;?>
                        <?php endforeach;?>
                    <?php endif;?>
                    <span id="checkEducationLevel"></span>
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">毕业学校</label>
                    <input type="text" id="GraduateUniversity" name="GraduateUniversity" class="input-03 fl mr10"
                           value="<?php echo isset($response['doctor']) && isset($response['doctor']['GraduateUniversity']) ? $response['doctor']['GraduateUniversity'] : '' ;?>"/>
                    <span id="checkGraduateUniversity"></span>
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">学术团体</label>
                    <input type="text" id="GroupName" name="GroupName" class="input-03 fl mr10" />
                    <label class="fl">担任职务</label>
                    <input type="text" id="GroupTitle" name="GroupTitle" class="input-03 fl" />
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">个人导师</label>
                    <input type="text" id="Tutor" name="Tutor" class="input-03 fl"
                           value="<?php echo isset($response['doctor']) && isset($response['doctor']['Tutor']) ? $response['doctor']['Tutor'] : '' ;?>"/>
                    <span id="checkTutor"></span>
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">专业领域</label>
                    <textarea id="ExpertiseAreas" name="ExpertiseAreas"><?php echo isset($response['doctor']) && isset($response['doctor']['ExpertiseAreas']) ? $response['doctor']['ExpertiseAreas'] : '' ;?></textarea>
                    <span id="checkExpertiseAreas"></span>
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">自我介绍</label>
                    <textarea id="Intro" name="Intro"><?php echo isset($response['doctor']) && isset($response['doctor']['Intro']) ? $response['doctor']['Intro'] : '' ;?></textarea>
                    <span id="checkIntro"></span>
                </p>
                <div class="fl mt20 ml15 mr30 pa t0 r5">
                    <img  id="src_head_img"
                          src="<?php echo isset($response['doctor']) && $response['doctor']['HeadImageId'] ? '/center/doctors/show_img?name=head_img&t='.rand(10,50) : get_theme_url('images/index-logo.png');?>" alt="头像图片" width="100" height="100" />
                    <span class="f12 mt30 ml10 in_b">注：图片最大为xxM，将显示在网站上<br />建议上传个人头像</span>
                    <div class="mt10">
                        <a href="javascript:;" class="button-01">上传头像</a>
                    </div>
                    <input type="file" name="head_img" id="head_img">
                    <input type="button"  class="button-01" value="上传头像" onclick="return upload_image('head_img',1);" >
                    <input type="hidden"
                           value="<?php echo isset($response['doctors']['user_head_img']) && $response['doctors']['user_head_img'] ? $response['doctors']['user_head_img'] :''?>"
                           id="user_head_img"
                           name="HeadImageId"/>
                    <span id="checkuser_head_img"></span>
                </div>
                <div class="mt20 tc">
                    <input value="提交" type="submit" class="button-01 mr20">
                    <input value="取消" type="reset" class="button-01 mr20">
                </div>
            </form>
            <p class="user-title">执业经历</p>
            <form class="p20 pr">
                <p class="mb10 clearfix"><label class="fl">审核日期</label>XXXXXX</p>
                <p class="mb10 clearfix">
                    <label class="fl">医&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;院</label>
                    <input type="text" class="input-03 fl mr10" />
                    <label class="fl">医院级别</label>
                    <input type="text" class="input-03 fl" />
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">所在省市</label>
                    <input type="text" class="input-01" />
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">联系地址</label>
                    <input type="text" class="input-01" />
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">科&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;室</label>
                    <input type="text" class="input-03 fl mr10" />
                    <label class="fl">科室电话</label>
                    <input type="text" class="input-03 fl" />
                </p>
                <p class="mb10 clearfix">
                    <label class="fl">职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称</label>
                    <input type="text" class="input-03 fl mr10" />
                </p>
            </form>
            <div class="user-title tr clearfix">
                <span class="fl">医师资格</span>
                <a href="javascript:;" class="button-01 mr20">新增</a>
                <a href="javascript:;" class="button-01 ml20">提交</a>
            </div>
            <table class="user-table1 ml25 mr15" width="95%">
                <tbody>
                <tr>
                    <td colspan="3">提交日期：XXXXXX</td>
                    <td rowspan="4"><a href="javascript:;" class="button-01">删除</a></td>
                </tr>
                <tr>
                    <td>医师执业证书：XXXXXX.jpg</td>
                    <td>医师资格证书：XXXXXX.jpg</td>
                    <td>其他相关证明：XXXXXX.jpg</td>
                </tr>
                <tr>
                    <td colspan="3">审核日期：XXXXXX</td>
                </tr>
                <tr>
                    <td>医师执业证书：XXXXXX.jpg</td>
                    <td>医师资格证书：XXXXXX.jpg</td>
                    <td>其他相关证明：XXXXXX.jpg</td>
                </tr>
                </tbody>
            </table>
            <div class="mt10 mr25 mb10 tr">
                <a href="javascript:;" class="button-01">展开</a>
            </div>
        </div>
    </div>
</div>